/**
 * 
 */
package algorithm.sort;

import java.text.Collator;
import java.util.Arrays;
import java.util.Locale;

/**
 * @author Administrator
 *
 */
public class TestCompare {

	public static void main(String[] args) {
		String[]   all   =   new   String[]   {
				  "����.����.Ԥ��.��Ϣ"   ,   
				  "����.����",   
				  "����.����",   
				  "����.����.Ԥ��",   
				  "����.����.����",
				  "zhongguo",
				  "ab",
				  "��ok",
				  "�й�",
				  "����.�й�",
				  "����"};
		  Arrays.sort(all, Collator.getInstance(Locale.CHINA));
		  
		  for(String s:all){
			  System.out.println(s);
		  }
		  
		  Collator collator = Collator.getInstance(Locale.CHINA);
		  System.out.println(collator.compare("�л�", "�л�"));
	}

}
